package com.aceitunaproject.server.entity;

import com.aceitunaproject.server.player.Player;
import com.sun.sgs.app.ManagedReference;


/**
 * @author Federico Bergstein
 *
 * Provide some basic functionality for all classes 
 * that represent game entities (Units,Installations,Settlements)
 */
public abstract class BasicEntity implements Entity {

	
	private Long id;
	private String name;
	ManagedReference<Player> playerRef;
	
	public BasicEntity(Long id, String name,ManagedReference<Player> playerRef)
	{
		this.id =id;
		this.name = name;
		this.playerRef = playerRef;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
	

}
